package com.crane.oss.school.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crane.oss.school.bean.request.equipment.AddEquipmentReq;
import com.crane.oss.school.bean.request.equipment.UpdateEquipmentReq;

import com.crane.oss.school.bean.request.QueryEquipmentReq;
import com.crane.oss.school.bean.resp.EquipmentResp;

import java.util.List;

/**
 * 器材表
 *
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2023年01月17日 23时03分27秒
 */
public interface EquipmentService {

    /**
     * 查詢对象
     * @param id
     * @return
     */
        EquipmentResp queryEquipment (Long id);

    /**
     * 查询列表
     * @param request
     * @return
     */
    IPage<EquipmentResp> queryList(QueryEquipmentReq request);

    /**
     * 保持对象
     * @param request
     * @return
     */
    int save(AddEquipmentReq request);

    /**
     * 修改对象
     * @param request
     * @return
     */
    int update(UpdateEquipmentReq request);

    /**
     * 删除对象
     * @param id
     * @return
     */
    int delete(Long id);

}
